package com.enterprise.viewer.shared.contentproviders;

import java.util.ArrayList;

import com.google.gwt.user.client.rpc.IsSerializable;

public class ContentProviders extends ArrayList<ContentProviderCategory> implements IsSerializable {

	private static final long serialVersionUID = -5845095191085879179L;

	public ContentProviders() {
		super();
	}
	
	public void insert(String categoryname, ContentProvider provider){
		for(ContentProviderCategory category : this){
			if(category.getName().contentEquals(categoryname)){
				category.add(provider);
				break;
			}
		}
	}	
}
